package xyz.heyaoshare.core.service.common;

import xyz.heyaoshare.core.controller.auth.vo.resp.CaptchaRespVO;

/**
 * 验证码 Service
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 下午2:08
 */
public interface CaptchaService {

    /**
     * 生成验证码
     * @return 验证码信息
     */
    CaptchaRespVO getCaptcha();

    /**
     * 验证验证码
     * @param key 验证码 key
     * @param userCode 用户输入的验证码
     */
    void validateCaptcha(String key, String userCode);

}